package com.handy.webwork.plugin;

import java.util.ArrayList;

public class PluginBean {
	private String name;//插件名
	private String entry;//框架启动时会自动执行的类
	private String actionPath;//定义actionPath的xml目录
	private String messagePath;//定义资源文件目录
	private String root;//插件的根url，访问该插件的时候会加上根地址
	private String url;//页面访问时插件的入口url
	private String logo;//插件在页面上显示的logo图
	private String title;//插件在页面上显示的标题
	private String desp;//插件的详细说明
	private String displayOrder;//插件在页面上显示的顺序
	private String access;//是否充许访问该插件
	private String dataSource;//该插件访问数据库时所使用的数据源
	private ArrayList<String> files = new ArrayList<String>();//actionPath与messagePath中所有的文件名

	public ArrayList<String> getFiles() {
		return files;
	}

	public void setFiles(ArrayList<String> files) {
		this.files = files;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEntry() {
		return entry;
	}

	public void setEntry(String entry) {
		this.entry = entry;
	}

	public String getActionPath() {
		return actionPath;
	}

	public void setActionPath(String actionPath) {
		this.actionPath = actionPath;
	}

	public String getMessagePath() {
		return messagePath;
	}

	public void setMessagePath(String messagePath) {
		this.messagePath = messagePath;
	}

	public String getRoot() {
		return root;
	}

	public void setRoot(String root) {
		this.root = root;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDesp() {
		return desp;
	}

	public void setDesp(String desp) {
		this.desp = desp;
	}

	public String getDisplayOrder() {
		return displayOrder;
	}

	public void setDisplayOrder(String displayOrder) {
		this.displayOrder = displayOrder;
	}

	public String getAccess() {
		return access;
	}

	public void setAccess(String access) {
		this.access = access;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("pluginname=" + name + "\n").append("entry=" + entry + "\n")
				.append("actionPath=" + actionPath + "\n").append(
						"messagePath=" + messagePath + "\n").append(
						"pluginname=" + name + "\n").append(
						"root=" + root + "\n").append("url=" + url + "\n")
				.append("logo=" + logo + "\n").append("title=" + title + "\n")
				.append("desp=" + desp + "\n").append(
						"displayOrder=" + displayOrder + "\n").append(
						"access=" + access + "\n").append(
						"dataSource" + dataSource);

		return sb.toString();
	}
}
